import 'package:wch/generated/json/base/json_field.dart';
import 'package:wch/generated/json/patient_label.g.dart';
import 'dart:convert';

@JsonSerializable()
class PatientLabelModel {
	String? code;
	String? msg;
	List<PatientAllLabelData>? data;

	PatientLabelModel();

	factory PatientLabelModel.fromJson(Map<String, dynamic> json) => $PatientLabelModelFromJson(json);

	Map<String, dynamic> toJson() => $PatientLabelModelToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class PatientAllLabelData {
	String? id;
	String? hospitalId;
	String? name;
	int? type;
	String? colour;
	String? text;
	String? status;
	String? createTime;
	String? updateTime;
	///辅助属性
	bool isChecked = false;

	PatientAllLabelData();

	factory PatientAllLabelData.fromJson(Map<String, dynamic> json) => $PatientAllLabelDataFromJson(json);

	Map<String, dynamic> toJson() => $PatientAllLabelDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}